package com.atcjx.mapper;

import com.atcjx.pojo.Article.Article;
import com.atcjx.pojo.Query.Tag.TagQueryPo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName TagMapper.java
 * @Description TODO
 * @createTime 2021年09月28日 19:04:00
 */
@Repository
@Mapper
public interface TagMapper {

    List<String>getTagsByCondition(Map<String,String>map);

    //添加一个tag
    int insertTag(String id,String tagName);

    //删除一个tag
    void deleteTag(String tag);

    //删除一个文章的所有tag映射
    void deleteTagArticleMapping(String id);

    //添加文章-tag映射
    void addArticleMapping(String id,String tagName);

    //根据主题名称获取tags
    List<String> getTagsByThemeName(String themeName);
}
